package com.serookie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.serookie.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author kevintam
 * @version 1.0
 * @date 2021/5/6 19:33
 */
@Mapper
@Repository
public interface SysUserMapper extends BaseMapper<SysUser>{
    //根据用户名查询用户的权限以及身份
    SysUser getSysUserByUsername(String username);
    //查询所有管理员及权限
    List<SysUser> findAll();
}
